import { getDictionary } from "@/app/dictionaries";
import AccountContent from "./content";
import { PageMeta } from "@/app/components/Meta";
import PageHeader from "@/app/components/PageHeader";

export async function generateMetadata(props) {
  const params = await props.params;
  const { lang } = params;

  const dict = await getDictionary(lang);
  return PageMeta({
    title: dict.account_title,
    description: dict.account_title,
    keywords: dict.account,
    canonicalUrl: `https://gallery.selfboot.cn/${lang}/account`,
    publishedDate: "2024-01-01T02:00:00.000Z",
    updatedDate: "2024-01-01T02:00:00.000Z",
  });
}

export default async function AccountPage(props) {
  const params = await props.params;
  const { lang } = params;
  const dict = await getDictionary(lang);

  return (
    <>
      <PageHeader lang={lang} pathname={`/${lang}/account`} />
      <AccountContent dict={dict} lang={lang} />
    </>
  );
}
